import React, { Component } from 'react';
import {BrowserRouter, Route, Link} from 'react-router-dom';
// import Button from 'antd/lib/button';
import {Button,Avatar} from 'antd';
import logo from './logo.svg';
import './App.css';

import Home from './components/Home';

class App extends Component {
  render() {
    return (
      <div className="App">
        <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h1 className="App-title">Welcome to React</h1>
        </header>
        <p className="App-intro">
          To get started, edit <code>src/App.js</code> and save to reload.
        </p>
          <Button type="primary">Button</Button>
          <Avatar size="large" icon="user"/>
          <BrowserRouter>
              <div>
                  <a href="/home">a 主页</a>
                  <Link to="home">主页</Link>
                  <Route path="/home" component={Home}/>
              </div>
          </BrowserRouter>
      </div>
    );
  }
}

export default App;
